package User;

import Operation.*;

import java.util.Scanner;
public class Normal extends User{
    public  Normal(){
        //初始化OPERATIONS
        this.ioperations=new IOperation[]{
                new ExitOperation(),
                new ShowOperation(),
                new FindOperation(),
                new BorrowOperation(),
                new ReturnOperation(),
        };
    }
    //打印普通用户的菜单
    @Override
    public int menu() {
        System.out.println("~~~~~~~~~~~~~");
        System.out.println("欢迎欢迎"+this.getUserName());
        System.out.println("请选择要进行的操作");
        System.out.println("1、查看书籍列表");
        System.out.println("2、查看指定书籍");
        System.out.println("3、借阅书籍");
        System.out.println("4、归还书籍");
        System.out.println("0、退出系统");
        Scanner scanner=new Scanner(System.in);
        int choice=scanner.nextInt();
        return choice;
    }
}
